<script>
//弹出框

function swal_alert(title,text,type){
	
	 
	if(!title){
		title='Message';
	}
	
	swal(title, text, type);
	
	
	
}
//确认提示框

function swal_confirm(title,success_function,fail_function,text,type){
	
	 if(!title){
		title='确定执行此操作？';
	 }
	 swal({
	  title: title,
	  text: text,
	  type: type,
	  showCancelButton: true,
	  confirmButtonColor: "#DD6B55",
	  confirmButtonText: "确定",
	  cancelButtonText: "取消",
	  closeOnConfirm: false,
	  closeOnCancel: false
	},
	function(isConfirm){
	  if (isConfirm) {
		success_function
	  } else {
		fail_function
	  }
	});
	
	
}

//ajax请求

function ajax(url,data,method){
	 $.ajax({
	   url: "page.php",
	   processData: false,
	   data: xmlDocument,
	   success: handleResponse
	 });
	
}

//退出登录

function loginOut(){
	
}

</script>